<?php
/**
 * @package WordPress
 * @subpackage desire
 */
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
    <meta http-equiv="Content-Type" content="text/html"; charset="<?php bloginfo('charset'); ?>" />
    <title><?php
        global $page, $paged;
        wp_title( '|', true, 'right' );
        bloginfo( 'name' );
        $site_description = get_bloginfo( 'description', 'display' );
        if ( $site_description && ( is_home() || is_front_page() ) )
        echo " | $site_description";
        if ( $paged >= 2 || $page >= 2 )
        echo ' | ' . sprintf( __( 'Page %s', 'desire' ), max( $paged, $page ) );
    ?></title>
    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
    <!--[if IE ]>
        <link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri(); ?>/style-ie.css" />
    <![endif]-->
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <?php
    //if ( is_singular() && get_option( 'thread_comments' ) )
    //    wp_enqueue_script( 'comment-reply' );
    //    wp_enqueue_script("jquery");
    ?>
    <?php global $desireoptions, $desirelogo; ?>  
    <?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="wrapper"> <!-- start of wrapper -->
    <div id="header">
        <table style="height: <?php echo HEADER_IMAGE_HEIGHT; ?>px; vertical-align: middle;">
            <tr>
                <?php if($desirelogo != 'none'): ?><td style="text-align: left;"><img style="vertical-align: middle; margin-left: 20px;" src="<?php echo $desirelogo; ?>" /></td><?php endif; ?>
                <td style="text-align: left;">                    
                    <h1 class="site-name" style="margin-top: 0;"><a href="<?php echo home_url(); ?>"><?php bloginfo('name'); ?></a></h1>
                    <?php if(trim(get_bloginfo('description')) != ""): ?><p class="description"><?php bloginfo('description'); ?></p><?php endif; ?>            
                </td>
            </tr>
        </table>
    </div>
    <div class="menu"><?php qaprc_lang_switch(); wp_nav_menu( array('theme_location' => 'primary', 'menu'=>'Top Bar', 'menu_class' => 'nav','container' => 'ul','depth' => 3,'fallback_cb' => 'wp_page_menu'));?>
	</div>
	<?php if($desireoptions['enable_breadcrumbs']): ?><div class="breadcrumbs"><?php desire_breadcrumbs(); ?></div><?php endif; ?>